Note: If you are not using the official template, you need to modify the corresponding The code may not be the content, please pay attention!
; then add the code "Font:< where the size needs to be called /small>[Large" will do."/>
; then add the code "Font:< where the size needs to be called /small>[Large" will do.">
Home >CMS Tutorial >DEDECMS >How to allow users to choose the font size on the DreamWeaver article page How to allow users to choose the font size on the DreamWeaver article page? The article page of DEDECMS allows users to choose the font size Recommended learning:CMS 1. Put the following code After the 2. Put the following code where the case needs to be called: 3. Use the code in the BODY part of the content page: Put the original template in Note: If you are not using the official template, you need to modify the corresponding The code may not be the content, please pay attention! The above is the detailed content of How to allow users to choose the font size on the DreamWeaver article page. For more information, please follow other related articles on the PHP Chinese website!How to allow users to choose the font size on the DreamWeaver article page
<script Language="JavaScript">
function FontZoom(fsize){
var ctext = document.getElementById("content");
ctext.style.fontSize = fsize +"px";
}</script>
<small>字体:</small> [<a href='javascript:FontZoom(16)'>大</a>
<a href='javascript:FontZoom(14)'>中</a> <a href='javascript:FontZoom(12)'>小</a>]
Related articles
See more