任何人都知道一個CSS破解的改變在這裏的鏈接文字:CSS hack修改html鏈接文本?
<div id = "foo"> <a href="/" rel="bookmark">Long Text for Regular site</a> </div>
這個較短的版本。
<div id = "foo"> <a href="/" rel="bookmark">Shorter Text</a> </div>
我能之前或鏈接後添加文本,使用pseudoselectors
但沒有運氣修改鏈接文本本身。
我使用的是squarespace
模板,所以我無法使用javascript來執行此操作或生成更好的html。
根據這個幫助頁面,Squarespace讓你的JavaScript添加到您的網頁。 http://help.squarespace.com/customer/portal/articles/438262-can-i-add-custom-html-css-and-javascript- –