html中的超链接不适用于嵌入式代码

时间:2022-11-22 21:28:55

I am trying to embed html code into a content box/embed code box on sharepoint.

我试图将html代码嵌入到sharepoint上的内容框/嵌入代码框中。

The code works fine in dreamweaver where i can preview it, but once i paste the code into the embed box and click save, all my content shows up but any link that I've created is not "clickable."

代码在Dreamweaver中正常工作,我可以预览它,但是一旦我将代码粘贴到嵌入框中并单击保存,我的所有内容都会显示,但我创建的任何链接都不是“可点击的”。

Here is my code:

这是我的代码:

<div id="wrapper">
   <div id="overlay"> 
      <h1>​WHS changing name to 1100 Trancas​ 
         <span class="button">
            <a href="/olenews/default.aspx"></a>Read More</span> </h1>
   </div>

1 个解决方案

#1


1  

To make the "Read More" text clickable, you have to move it like so:

要使“Read More”文本可单击,您必须像这样移动它:

   <div id="wrapper">
     <div id="overlay"> 
      <h1>​WHS changing name to 1100 Trancas​ 
         <span class="button">
            <a href="/olenews/default.aspx">Read More</a></span> </h1>
   </div>
As you can see the "Read More" text is blue. While the "Read More" in your code is still black

What I did was moved the "Read More" text inbetween the opener a and the closer a so that the href stated will apply to the text.

我所做的是在开启者a和更接近的a之间移动了“阅读更多”文本,以便所述的href将应用于文本。

Also, may I ask what the link is to the site you are developing?

另外,请问您正在开发的网站的链接是什么?

EDIT: rewrote entire answer

编辑:重写完整的答案

#1


1  

To make the "Read More" text clickable, you have to move it like so:

要使“Read More”文本可单击,您必须像这样移动它:

   <div id="wrapper">
     <div id="overlay"> 
      <h1>​WHS changing name to 1100 Trancas​ 
         <span class="button">
            <a href="/olenews/default.aspx">Read More</a></span> </h1>
   </div>
As you can see the "Read More" text is blue. While the "Read More" in your code is still black

What I did was moved the "Read More" text inbetween the opener a and the closer a so that the href stated will apply to the text.

我所做的是在开启者a和更接近的a之间移动了“阅读更多”文本,以便所述的href将应用于文本。

Also, may I ask what the link is to the site you are developing?

另外,请问您正在开发的网站的链接是什么?

EDIT: rewrote entire answer

编辑:重写完整的答案